import Cookies from 'js-cookie'

// Token key是用来存储token的key
const TokenKey = 'vue_admin_template_token'

// 获取Cookie中的token
export function getToken() {
  return Cookies.get(TokenKey)
}

// 将token存储到cookie中
export function setToken(token) {
  return Cookies.set(TokenKey, token)
}

// 删除cookie中的token
export function removeToken() {
  return Cookies.remove(TokenKey)
}
